package com.zy.cat.entity.game;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Index;
import javax.persistence.Table;

import com.zy.cat.entity.primary.CVSInfoPrimary;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @info 9趣猫刮刮卡每日中奖数据记录实体类
 * @author Link
 * @date 2019-10-30 09:14
 */
@Entity
@Table(name = "zy_cat_game_card_daily_history", indexes = {
		@Index(name = "pid", columnList = "pid"),
		@Index(name = "ctime", columnList = "ctime")})
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("9趣猫刮刮卡每日数据记录实体类")
@IdClass(CVSInfoPrimary.class)
public class CardInfo {
	
	@Id
	@Column(columnDefinition = "VARCHAR(20) NOT NULL  COMMENT '用户账号ID[9趣猫刮刮卡每日数据记录实体类]'")
	@ApiModelProperty(value = "用户账号ID", example = "fe53d6a4fa29641")
	private String pid;
	
	@Id
	@Column(columnDefinition = "VARCHAR(10) NOT NULL  COMMENT '创建时间'")
	@ApiModelProperty(value = "创建时间", example = "2019-02-22")
	private String ctime;
	
	@Column(columnDefinition = "INT(10) DEFAULT '0' COMMENT '500元卡剩余数量（每日限量1次）'")
	@ApiModelProperty(value = "1000元卡剩余数量（每日限量1次）", example = "1")
	private int card500;
	
	@Column(columnDefinition = "INT(10) DEFAULT '0' COMMENT '1000元卡剩余数量（每日限量1次）'")
	@ApiModelProperty(value = "1000元卡剩余数量（每日限量1次）", example = "1")
	private int card1000;
	
	@Column(columnDefinition = "INT(10) DEFAULT '0' COMMENT '1500元卡剩余数量（每日限量5次）'")
	@ApiModelProperty(value = "1500元卡剩余数量（每日限量5次）", example = "1")
	private int card1500;
	
	@Column(columnDefinition = "INT(5) DEFAULT '0' COMMENT '今日刮卡数'")
	@ApiModelProperty(value = "今日刮卡数", example = "1")
	private int gcards;
	
	@Column(columnDefinition = "INT(3) DEFAULT '0' COMMENT '今日剩余卡数'")
	@ApiModelProperty(value = "今日剩余卡数", example = "1")
	private long cards;
	
	@Column(columnDefinition = "BIGINT(10) DEFAULT '0' COMMENT '今日抽中现金豆数'")
	@ApiModelProperty(value = "今日抽中现金豆数", example = "1")
	private long beans;
	
	@Column(columnDefinition = "VARCHAR(20) DEFAULT '-'  COMMENT '最后更更新时间'")
	@ApiModelProperty(value = "最后更更新时间", example = "2019-02-22 10:10:10")
	private String ltime;

	public CardInfo(String pid) {
		super();
		this.pid = pid;
	}
	
}
